package ids.dev.model;

import ids.dev.util.IDSStringUtil;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

@Entity
@Table(name = "ids_item")
public class Item implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="id")
	@SequenceGenerator(allocationSize=1, initialValue=1, sequenceName="item_id_seq", name="item_id_seq")
	@GeneratedValue(generator="item_id_seq", strategy=GenerationType.SEQUENCE)
	private Integer id;
	
	@Column(name="details")
	private String name = IDSStringUtil.STRING_EMPTY;
	
	
}
